﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SubForm.Master" AutoEventWireup="true"
    CodeBehind="DatabaseSnapshot.aspx.cs" Inherits="PreContractWeb.Administration.DatabaseSnapshot" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function confirm_create_snapshot() {
            if (confirm("您确定要为报表创建当前数据的备份吗？\n\nAre you sure you want to create current data snapshot for reports now?") == true) {
                return true;
            } else {
                return false;
            }
        }
    </script>
    <div id="divError" runat="server" visible="false">
    </div>
    <div id="divConnect" runat="server" style="text-align: center">
        <table width="95%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="100%" height="100%" valign="middle" align="center">
                    <br />
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="panel_header">
                                <!--标题-->
                                报表数据备份(Data Snapshot for Reports)<!--标题-->
                            </td>
                            <td width="5" rowspan="2" background="../Images/BG-Border-Right.png" valign="top">
                                <img src="../Images/BG-Border-RT.png" border="0" />
                            </td>
                        </tr>
                        <tr align="left">
                            <td class="panel_body" align="left">
                                <!--Panel Body-->
                                <table width="95%" border="0" cellpadding="0" cellspacing="0">
                                    <tr align="left">
                                        <td width="50%" class="content_title">
                                            最近备份时间:<br />
                                            Lastest Snapshot:
                                            <td width="50%" class="content_data">
                                                <asp:Label ID="lblLastDatabaseSnapshotTime" runat="server"></asp:Label>
                                            </td>
                                    </tr>
                                </table>
                                <table width="95%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="right" height="40" valign="middle" style="border-top: 1px; border-top-color: #BBBBBB;
                                            border-top-style: dashed;">
                                            &nbsp;
                                            <asp:Button ID="btnCreateDatabaseSnapshot" Text="备份数据(Create Data Snapshot)" CssClass="bgButton"
                                                runat="server" OnClick="btnCreateDatabaseSnapshot_OnClick" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td height="5" background="../Images/BG-Border-Bottom.png" align="left">
                                <img src="../Images/BG-Border-LB.png" border="0" />
                            </td>
                            <td width="5" height="5" background="../Images/BG-Border-RB.png">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
